package com.healer.service.Impl;

import com.healer.service.TicketService;
import org.apache.dubbo.config.annotation.DubboService;

//@Component
@DubboService   //可以被扫描到，在项目已启动就注册到注册中心
public class TicketServiceImpl implements TicketService {
    @Override
    public String getTicket(String tname) {
        System.out.println("TicketServiceImpl");
        return "成功购买一张"+tname+"的票";
    }
}
